const baseController = require("./baseController");
const userModel = require("../../model/userModel");

class userController extends baseController {
   async login() {
        return this.display("login.html");
    }
    async userList() { 
        let user = new userModel();
        try{
            let userList = await user.select();
            return JSON.stringify(userList);//就是把对象转成json格式
        }catch(err){
            console.log(err);
        }
    }
}
module.exports = userController;